exports.search_sms = function(req,res) {

    //获取restful参数
    var restfulParams = req.routeInfo.restfulParams;

    //最终结果
    var resultData = {};
    var resData = 0;
    var time = Date.parse(new Date()) * 0.001;
    //任务流创建
    async.waterfall([


        function(cb){

            R.SEND_HTTP(
                req,
                {
                    url    : CORE_APIConfig.coreAPI.search_sms+"/count/1/s_code/"+restfulParams.s_code+"/s_phone/"+restfulParams.s_phone,
                    method : 'POST',
                    data   : {
                        fields : [
                            "s_end_time"
                        ].join(",")
                    }
                },
                function (err, data) {

                    resData = data.data[0].s_end_time;

                    cb();
                }
            );
        },
        function(cb){
            ////console.log(resData);
            if(resData > time ){
                resultData = true;
            }else{
                resultData = false;
            }
            cb();
        }
    ],function(err, result){

        //返回最终拼接结果
        RES.response(res,true,resultData);

    });

}